﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DAL;
using Common;

public partial class Customer_Contract_View : System.Web.UI.Page
{
    protected int ContractKey;

    protected string  ContractNO;

    protected Dat_Contract contract;

    protected string MenuType
    {
        get { return string.IsNullOrEmpty(Request["menutype"]) ? "" : Request["menutype"].ToString(); }
    }

    protected void Page_Load(object sender, EventArgs e)
    {
        ContractKey = string.IsNullOrEmpty(Request["ContractKey"]) ? 0 : Convert.ToInt32(Request["ContractNO"]);
        ContractNO = string.IsNullOrEmpty(Request["ContractNO"]) ? "" : Request["ContractNO"].ToString();

        if (ContractKey != 0)
            contract = new Contract().SelectContract(ContractKey);
        if (ContractNO!="")
            contract = new Contract().SelectContract(ContractNO);
    }
}
